package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;

import java.util.List;

public interface IEmployeeService {
    // 删除
    void delete(Long id);

    void insert(Employee employee, Long[] roleIds);
    void update(Employee employee, Long[] roleIds);

    Employee get(Long id);
    // 添加分页功能
    PageInfo<Employee> query(QueryObject qo);
    // 查询全部
    List<Employee> listAll();

    // 查询用户名是否存在
    boolean checkUsername(String username);

    // 登录
    Employee login(String username, String password);

    // 文件导出 =>文件下载
    Workbook exportXls();

    // 文件导入 =>文件上传
    void importXls(Workbook wb);

    // shiro 登录
    Employee queryByUsername(String username);
}
